﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DTO.Models
{
    public class DataRepository
    {
        private UserProvider _userProvider;
        private MediaProvider _mediaProvider;
        private SurveyProvider _surveyProvider;
        private FeedbackProvider _feedbackProvider;
        private VoteProvider _voteProvider;
       
        public UserProvider UserProvider
        {
            get {
                _userProvider = new UserProvider();
                return _userProvider; 
            }
            set { _userProvider = value; }
        }

        public MediaProvider MediaProvider
        {
            get
            {
                _mediaProvider = new MediaProvider();
                return _mediaProvider;
            }
            set { _mediaProvider = value; }
        }

        public SurveyProvider SurveyProvider
        {
            get
            {
                _surveyProvider = new SurveyProvider();
                return _surveyProvider;
            }
            set { _surveyProvider = value; }
        }

        public FeedbackProvider FeedbackProvider
        {
            get
            {
                _feedbackProvider = new FeedbackProvider();
                return _feedbackProvider;
            }
            set { _feedbackProvider = value; }
        }

        public VoteProvider VoteProvider
        {
            get
            {
                _voteProvider = new VoteProvider();
                return _voteProvider;
            }
            set { _voteProvider = value; }
        }

    }
}